package com.yjha.lzmarathonsys.utils;

import cn.hutool.crypto.SecureUtil;

public class PasswordUtil {

    public static String encryption(String password, String salt, int count) {
        String md5 = SecureUtil.md5(password + salt);
        for (int i = 0; i < count; ++i) {
            md5 = SecureUtil.md5(md5 + salt);
        }
        return md5;
    }

    public static void main(String[] args) {
        String encryption = encryption("111","zyx", 3);

        System.out.println(encryption);

    }

}
